package com.cy.zs.hp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cy.zs.hp.mapper.HisDoctorMapper;
import com.cy.zs.hp.model.HisDoctor;
import com.cy.zs.hp.service.IHisDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 医师相关 服务实现类
 * </p>
 *
 * @author cgb2008
 * @since 2020-11-28
 */
@Service
public class HisDoctorServiceImpl extends ServiceImpl<HisDoctorMapper, HisDoctor> implements IHisDoctorService {
    @Autowired
    private HisDoctorMapper hisDoctorMapper;
    @Override
    public List<HisDoctor> findDepartment() {
        List<HisDoctor> list = hisDoctorMapper.findDepartment();
        return list;
    }

    @Override
    public List<HisDoctor> findByDepartment(String department) {
        return hisDoctorMapper.findByDepartment(department);
    }

    @Override
    public HisDoctor findByDoctorId(Integer doctorId) {
        return hisDoctorMapper.findByDoctorId(doctorId);
    }

}
